var requiredFields1 = ["username1","password1"];

function checkContactForm1(myForm1) {
  var myForm1 = document.forms[0];
  for (i in requiredFields1) {
    fieldName1 = requiredFields1[i];
    if (!myForm1[fieldName1].value || myForm1[fieldName1].value == "Mandatory field") {
      myForm1[fieldName1].style.color = "#f66";
      myForm1[fieldName1].value = "Mandatory field";
      var emptyFields1 = true;
	  var errorMessage1 = document.getElementById("errormessage");
	  errorMessage1.innerHTML = "<p>&#42; Mandatory fields </p>";
    }
  }
  if (!emptyFields1) { myForm1.submit(); }
}

function resetField1(myField1) {
  if (myField1.value == "Mandatory field") {
    myField1.style.color = "#000";
    myField1.value = "";

  }
}

function promptemail(){
	var fpaddin = document.getElementById("fpaddin");
	  fpaddin.innerHTML = "<form><p></p>";
}